package com.itheima.d6_polymorphism.demo1;

public class Card {
    private String carNumber;
    private String name;
    private int number;
    private double money;
    //父类的方法
    public void pay(double money) {
        System.out.println("使用普通卡支付了：" + money);
    }

    public Card() {
    }

    public Card(String carNumber, String name, int number, double money) {
        this.carNumber = carNumber;
        this.name = name;
        this.number = number;
        this.money = money;
    }

    public String getCarNumber() {
        return carNumber;
    }

    public void setCarNumber(String carNumber) {
        this.carNumber = carNumber;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}
